/*
 * @Author: worldzb 
 * @Date: 2018-10-07 23:43:03 
 * @Last Modified by: worldzb
 * @Last Modified time: 2019-01-07 16:17:03
 */

export default {
    state:{
        dialogStatus:{
            stNewFile: false,
            stOpenFile:false,
            stSaveFile:false,
            stTableSettings:false,
            stDownFile:false,
            stPredefine:false,//预定义变量
            stTemplate:false,//模板
            stPreEdit:false,
            stSaveAs:false,
            stLogin:false,
        }
    },
    getters:{
        getDialogStatus(state){
            return state.dialogStatus;
        }
    },
    mutations:{
        //添加新表格
        setDialogStatus(state,options){
            //console.log(options);
            state.dialogStatus[options.key]=options.value;
        },
        closeAllDialog(state){
            for(let index in state.dialogStatus){
                state.dialogStatus[index]=false;
            }
        }
    } 
    
}